package com.safety.hat.controller;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

/**
 * @Author: lijun
 * @Date: 2020/5/18 下午5:03
 */
@Slf4j
@RestController
@RequestMapping("demo")
@RequiredArgsConstructor
@Validated
public class DemoController {

    @GetMapping
    public String timeInfo() {
        return LocalDateTime.now().toString();
    }


}
